/**
 * @ author: 汪孟苹
 */
define([], function () {
	var tpl = {}

	tpl.patientsByPhone = function () {
		var html = ''
		html += patientsByPhone()
		return html
	}

	tpl.assessFooter = function () {
		var html = ''
		html += assessFooter()
		return html
	}
	tpl.highrisk = function () {
		var html = ''
		html += highrisk()
		return html
	}
	tpl.aims = function () {
		var html = ''
		html += aims()
		return html
	}

	tpl.projectItem = function () {
		var html = ''
		html += projectItem()
		return html
	}
	tpl.projectItemManager = function () {
		var html = ''
		html += projectItemManager()
		return html
	}

	// 图像处理（添加图片）
	tpl.addImageProcessing = function () {
		var html = ''
		html += addImageProcessing()
		return html
	}
	// 图像处理（编辑图片）
	tpl.editImageProcessing = function () {
		var html = ''
		html += editImageProcessing()
		return html
	}
	//设备编号：
	tpl.addImg_imageBox = function () {
		var html = ''
		html += addImg_imageBox()
		return html
	}
	tpl.init = function () {
		var html = ''
		html += total()
		html += group()
		html += text()
		html += autocomplete()			// 根据手机号码带出患者信息题型
		html += staticText()			// 静态文本（val是字符串型）
		html += staticFormat()			// 静态格式化题型
		html += staticAge()			// 年龄展示，根据建档立的出生日期、预产期（孕周）
		html += staticAtualAge()		// 年龄展示，根据建档立的出生日期
		html += staticGestationalAge()	// 年龄/纠正胎龄(先天性青光眼、早产儿视网膜病变)
		html += staticTextarea()		// 静态文本（文字比较多，val是字符串型）
		html += date()
		html += checkbox()
		html += radio()
		html += textarea()
		html += select()
		html += calc()
		html += multiSelectNumber()	// 多下拉框题型(数字题型)
		html += multiSelect()			// 多下拉框题型
		html += multiText()			// 多输入框题型
		html += multiLabelText()		// 多label输入框题型
		html += gestationComplex()		// 孕周复杂题型
		html += gestationSimple()		// 孕周简单题型
		html += correctAge()  			// 纠正胎龄
		html += overallBirth()			// 出生日期、预产期、孕周、年龄（纠正胎龄、纠正年龄）
		html += growthSimple()			// 生长发育简单题型
		html += growthComplex()		// 生长发育复杂题型
		html += radioInput()			// 单选加输入题型
		html += checkboxInput()		// 复选加输入题型
		html += textareaAssess()		// 点击按钮弹出评估问卷，根据结果返回默认值
		html += address()				// 地址题型
		html += imagesMultiText()		// 根据图片多输入题型
		html += imagesTextarea()		// 根据图片大输入题型
		html += checkboxRelation()		// 勾选复选框决定是否显示相关联的题目
		html += radioRelation()		// 勾选单选框决定是否显示相关联的题目
		html += checkboxWithInput()	// 复选加输入题型(一个id)
		html += radioWithInput()		// 单选加输入题型(一个id)
		html += space()
		html += hidden()
		html += clear()
		html += groupCollapse() 		// 可折叠的组
		html += uploadPictures()		// 上传图片
		html += tableInput()			// 表格输入题型？？
		html += karteName()			// 门诊记录名题型
		html += multiTextSelect()		// 前面一个输入框，后面一个下拉框题型
		html += imageProcessing()		// 影像处理题型
		html += sudoku()				// 九宫格
		html += geneFusion()			// 融合基因题型
		html += sudokuPictures()		// 九宫格图片
		html += selectByUrl()			// 需要请求接口的下拉题型

		return html
	}

	var total = function () {
		return '<script id="tpl_question_total" type="text/html">' +
			'<form id="{{formId}}" class="form-horizontal clearfix">' +
			'	{{each questions as value1 i}}' +
			'		{{each value1 as value i}}' +
			'			{{if value.type=="qusetion_group"}}' +
			'				{{include "tpl_question_group",value}}' +
			'			{{else if value.type=="qusetion_groupCollapse"}}' +
			'				{{include "tpl_question_groupCollapse",value}}' +
			'			{{/if}}' +
			'		{{/each}}' +
			'	{{/each}}' +
			'</form>' +
			'</script>'
	}
	var group = function () {
		return '<script id="tpl_question_group" type="text/html">' +
			'			{{if showLabel}}' +
			'				<div id="{{id}}" {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard-subtit col-sm-12 col-md-12 {{if showIcon}} has-icon{{/if}}">' +
			'					<div>' +
			'       				{{if showIcon}}<i class="fa fa-file-text"></i>{{/if}}' +
			'						<span>{{label}}</span>' +
			'					</div>' +
			'				</div>' +
			'			{{/if}}' +
			'			{{each children as value i}}' +
			'				{{if value.type=="qusetion_group"}}' +
			'					{{include "tpl_question_group",value}}' +
			'				{{else if value.type=="qusetion_groupCollapse"}}' +
			'					{{include "tpl_question_groupCollapse",value}}' +
			'				{{else if value.type=="question_text"}}' +
			'					{{include "tpl_question_text",value}}' +
			'				{{else if value.type=="question_autocomplete"}}' +
			'					{{include "tpl_question_autocomplete",value}}' +
			'				{{else if value.type=="question_staticText"}}' +
			'					{{include "tpl_question_staticText",value}}' +
			'				{{else if value.type=="question_staticFormat"}}' +
			'					{{include "tpl_question_staticFormat",value}}' +
			'				{{else if value.type=="question_staticAge"}}' +
			'					{{include "tpl_question_staticAge",value}}' +
			'				{{else if value.type=="question_staticAtualAge"}}' +
			'					{{include "tpl_question_staticAtualAge",value}}' +
			'				{{else if value.type=="question_staticGestationalAge"}}' +
			'					{{include "tpl_question_staticGestationalAge",value}}' +
			'				{{else if value.type=="question_staticTextarea"}}' +
			'					{{include "tpl_question_staticTextarea",value}}' +
			'				{{else if value.type=="question_hidden"}}' +
			'					{{include "tpl_question_hidden",value}}' +
			'				{{else if value.type=="question_date"}}' +
			'					{{include "tpl_question_date",value}}' +
			'				{{else if value.type=="question_checkbox"}}' +
			'					{{include "tpl_question_checkbox",value}}' +
			'				{{else if value.type=="question_radio"}}' +
			'					{{include "tpl_question_radio",value}}' +
			'				{{else if value.type=="question_textarea"}}' +
			'					{{include "tpl_question_textarea",value}}' +
			'				{{else if value.type=="question_select"}}' +
			'					{{include "tpl_question_select",value}}' +
			'				{{else if value.type=="question_calc"}}' +
			'					{{include "tpl_question_calc",value}}' +
			'				{{else if value.type=="question_multiSelectNumber"}}' +
			'					{{include "tpl_question_multiSelectNumber",value}}' +
			'				{{else if value.type=="question_multiSelect"}}' +
			'					{{include "tpl_question_multiSelect",value}}' +
			'				{{else if value.type=="question_multiText"}}' +
			'					{{include "tpl_question_multiText",value}}' +
			'				{{else if value.type=="question_gestationComplex"}}' +
			'					{{include "tpl_question_gestationComplex",value}}' +
			'				{{else if value.type=="question_gestationSimple"}}' +
			'					{{include "tpl_question_gestationSimple",value}}' +
			'				{{else if value.type=="question_correctAge"}}' +
			'					{{include "tpl_question_correctAge",value}}' +
			'				{{else if value.type=="question_overallBirth"}}' +
			'					{{include "tpl_question_overallBirth",value}}' +
			'				{{else if value.type=="question_growthSimple"}}' +
			'					{{include "tpl_question_growthSimple",value}}' +
			'				{{else if value.type=="question_growthComplex"}}' +
			'					{{include "tpl_question_growthComplex",value}}' +
			'				{{else if value.type=="question_radioInput"}}' +
			'					{{include "tpl_question_radioInput",value}}' +
			'				{{else if value.type=="question_checkboxInput"}}' +
			'					{{include "tpl_question_checkboxInput",value}}' +
			'				{{else if value.type=="question_textareaAssess"}}' +
			'					{{include "tpl_question_textareaAssess",value}}' +
			'				{{else if value.type=="question_address"}}' +
			'					{{include "tpl_question_address",value}}' +
			'				{{else if value.type=="question_imagesMultiText"}}' +
			'					{{include "tpl_question_imagesMultiText",value}}' +
			'				{{else if value.type=="question_imagesTextarea"}}' +
			'					{{include "tpl_question_imagesTextarea",value}}' +
			'				{{else if value.type=="question_multiLabelText"}}' +
			'					{{include "tpl_question_multiLabelText",value}}' +
			'				{{else if value.type=="question_checkboxRelation"}}' +
			'					{{include "tpl_question_checkboxRelation",value}}' +
			'				{{else if value.type=="question_radioRelation"}}' +
			'					{{include "tpl_question_radioRelation",value}}' +
			'				{{else if value.type=="question_checkboxWithInput"}}' +
			'					{{include "tpl_question_checkboxWithInput",value}}' +
			'				{{else if value.type=="question_radioWithInput"}}' +
			'					{{include "tpl_question_radioWithInput",value}}' +
			'				{{else if value.type=="question_space"}}' +
			'					{{include "tpl_question_space",value}}' +
			'				{{else if value.type=="question_clear"}}' +
			'					{{include "tpl_question_clear",value}}' +
			'				{{else if value.type=="question_uploadPictures"}}' +
			'					{{include "tpl_question_uploadPictures",value}}' +
			'				{{else if value.type=="question_tableInput"}}' +
			'					{{include "tpl_question_tableInput",value}}' +
			'				{{else if value.type=="question_karteName"}}' +
			'					{{include "tpl_question_karteName",value}}' +
			'				{{else if value.type=="question_multiTextSelect"}}' +
			'					{{include "tpl_question_multiTextSelect",value}}' +
			'				{{else if value.type=="question_imageProcessing"}}' +
			'					{{include "tpl_question_imageProcessing",value}}' +
			'				{{else if value.type=="question_sudoku"}}' +
			'					{{include "tpl_question_sudoku",value}}' +
			'				{{else if value.type=="question_geneFusion"}}' +
			'					{{include "tpl_question_geneFusion",value}}' +
			'				{{else if value.type=="question_sudokuPictures"}}' +
			'					{{include "tpl_question_sudokuPictures",value}}' +
			'				{{else if value.type=="question_selectByUrl"}}' +
			'					{{include "tpl_question_selectByUrl",value}}' +
			'				{{else if value.type=="question_secondary_heading"}}' +
			'					{{include "tpl_question_secondaryHeading",value}}' +
			'				{{/if}}' +
			'			{{/each}}' +
			'</script>'
	}
	var groupCollapse = function () {
		return '<script id="tpl_question_groupCollapse" type="text/html">' +
			'	<div class="qaCard-groupCollapse clearfix" >' +
			'			{{if showLabel || subShowLabel}}' +
			'				<div id="{{id}}" {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard-subtit col-sm-12 col-md-12 col-sm-{{length}} col-md-{{length}} grid-label-{{labelLength}} {{align}} {{if showIcon}} has-icon{{/if}}" collapse="{{collapse}}">' +
			'					<div>' +
			'       		{{if showIcon}}<i class="fa fa-file-text"></i>{{/if}}' +
			'						<span style="border-color:{{labelColor}}">{{label}}</span>' +
			'						{{if collapse == "true"}}' +
			'							<i class="fa fa-plus-square-o"></i>' +
			'						{{else}}' +
			'							<i class="fa fa-minus-square-o"></i>' +
			'						{{/if}}' +
			'					</div>' +
			'				</div>' +
			'			{{/if}}' +
			'			<div class="qaCard-groupCollapse-content">' +
			'			{{each children as value i}}' +
			'				{{if value.type=="qusetion_group"}}' +
			'					{{include "tpl_question_group",value}}' +
			'				{{else if value.type=="qusetion_groupCollapse"}}' +
			'					{{include "tpl_question_groupCollapse",value}}' +
			'				{{else if value.type=="question_text"}}' +
			'					{{include "tpl_question_text",value}}' +
			'				{{else if value.type=="question_autocomplete"}}' +
			'					{{include "tpl_question_autocomplete",value}}' +
			'				{{else if value.type=="question_staticText"}}' +
			'					{{include "tpl_question_staticText",value}}' +
			'				{{else if value.type=="question_staticFormat"}}' +
			'					{{include "tpl_question_staticFormat",value}}' +
			'				{{else if value.type=="question_staticAge"}}' +
			'					{{include "tpl_question_staticAge",value}}' +
			'				{{else if value.type=="question_staticAtualAge"}}' +
			'					{{include "tpl_question_staticAtualAge",value}}' +
			'				{{else if value.type=="question_staticGestationalAge"}}' +
			'					{{include "tpl_question_staticGestationalAge",value}}' +
			'				{{else if value.type=="question_staticTextarea"}}' +
			'					{{include "tpl_question_staticTextarea",value}}' +
			'				{{else if value.type=="question_hidden"}}' +
			'					{{include "tpl_question_hidden",value}}' +
			'				{{else if value.type=="question_date"}}' +
			'					{{include "tpl_question_date",value}}' +
			'				{{else if value.type=="question_checkbox"}}' +
			'					{{include "tpl_question_checkbox",value}}' +
			'				{{else if value.type=="question_radio"}}' +
			'					{{include "tpl_question_radio",value}}' +
			'				{{else if value.type=="question_textarea"}}' +
			'					{{include "tpl_question_textarea",value}}' +
			'				{{else if value.type=="question_select"}}' +
			'					{{include "tpl_question_select",value}}' +
			'				{{else if value.type=="question_calc"}}' +
			'					{{include "tpl_question_calc",value}}' +
			'				{{else if value.type=="question_multiSelectNumber"}}' +
			'					{{include "tpl_question_multiSelectNumber",value}}' +
			'				{{else if value.type=="question_multiSelect"}}' +
			'					{{include "tpl_question_multiSelect",value}}' +
			'				{{else if value.type=="question_multiText"}}' +
			'					{{include "tpl_question_multiText",value}}' +
			'				{{else if value.type=="question_gestationComplex"}}' +
			'					{{include "tpl_question_gestationComplex",value}}' +
			'				{{else if value.type=="question_gestationSimple"}}' +
			'					{{include "tpl_question_gestationSimple",value}}' +
			'				{{else if value.type=="question_correctAge"}}' +
			'					{{include "tpl_question_correctAge",value}}' +
			'				{{else if value.type=="question_overallBirth"}}' +
			'					{{include "tpl_question_overallBirth",value}}' +
			'				{{else if value.type=="question_growthSimple"}}' +
			'					{{include "tpl_question_growthSimple",value}}' +
			'				{{else if value.type=="question_growthComplex"}}' +
			'					{{include "tpl_question_growthComplex",value}}' +
			'				{{else if value.type=="question_radioInput"}}' +
			'					{{include "tpl_question_radioInput",value}}' +
			'				{{else if value.type=="question_checkboxInput"}}' +
			'					{{include "tpl_question_checkboxInput",value}}' +
			'				{{else if value.type=="question_textareaAssess"}}' +
			'					{{include "tpl_question_textareaAssess",value}}' +
			'				{{else if value.type=="question_address"}}' +
			'					{{include "tpl_question_address",value}}' +
			'				{{else if value.type=="question_imagesMultiText"}}' +
			'					{{include "tpl_question_imagesMultiText",value}}' +
			'				{{else if value.type=="question_imagesTextarea"}}' +
			'					{{include "tpl_question_imagesTextarea",value}}' +
			'				{{else if value.type=="question_multiLabelText"}}' +
			'					{{include "tpl_question_multiLabelText",value}}' +
			'				{{else if value.type=="question_checkboxRelation"}}' +
			'					{{include "tpl_question_checkboxRelation",value}}' +
			'				{{else if value.type=="question_radioRelation"}}' +
			'					{{include "tpl_question_radioRelation",value}}' +
			'				{{else if value.type=="question_checkboxWithInput"}}' +
			'					{{include "tpl_question_checkboxWithInput",value}}' +
			'				{{else if value.type=="question_radioWithInput"}}' +
			'					{{include "tpl_question_radioWithInput",value}}' +
			'				{{else if value.type=="question_space"}}' +
			'					{{include "tpl_question_space",value}}' +
			'				{{else if value.type=="question_clear"}}' +
			'					{{include "tpl_question_clear",value}}' +
			'				{{else if value.type=="question_uploadPictures"}}' +
			'					{{include "tpl_question_uploadPictures",value}}' +
			'				{{else if value.type=="question_tableInput"}}' +
			'					{{include "tpl_question_tableInput",value}}' +
			'				{{else if value.type=="question_karteName"}}' +
			'					{{include "tpl_question_karteName",value}}' +
			'				{{else if value.type=="question_multiTextSelect"}}' +
			'					{{include "tpl_question_multiTextSelect",value}}' +
			'				{{else if value.type=="question_imageProcessing"}}' +
			'					{{include "tpl_question_imageProcessing",value}}' +
			'				{{else if value.type=="question_sudoku"}}' +
			'					{{include "tpl_question_sudoku",value}}' +
			'				{{else if value.type=="question_geneFusion"}}' +
			'					{{include "tpl_question_geneFusion",value}}' +
			'				{{else if value.type=="question_sudokuPictures"}}' +
			'					{{include "tpl_question_sudokuPictures",value}}' +
			'				{{else if value.type=="question_selectByUrl"}}' +
			'					{{include "tpl_question_selectByUrl",value}}' +
			'				{{else if value.type=="question_secondary_heading"}}' +
			'					{{include "tpl_question_secondaryHeading",value}}' +
			'				{{/if}}' +
			'			{{/each}}' +
			'			</div>' +
			'	</div>' +
			'</script>'
	}
	var imageProcessing = function () {
		return '<script id="tpl_question_imageProcessing" type="text/html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard form-group form-group-sm col-sm-{{length}} col-md-{{length}} grid-label-{{labelLength}}">' +
			'		<label class="control-label {{align}}">{{label}}</label>' +
			'   	<div class="control-input">' +
			'   		<div class="qaCard-imageProcessing clearfix">' +
			'		        <div class="qaCard-imageBox">' +
			'				</div>' +
			'				<div class="imageProcessing-addBtn" deviceTypeId = "{{deviceTypeId}}" diseaseTypeId = "{{diseaseTypeId}}" manualTypeId = "{{manualTypeId}}" name = "{{id}}">' +
			'					<i class="fa fa-plus"></i>' +
			'					<span>点击添加影像</span>' +
			'		        </div>' +
			'			</div>' +

			'  		</div>' +
			'	</div>' +
			'</script>'
	}
	var editImageProcessing = function () {
		return '<script id="tpl_question_editImageProcessing" type="text/html">' +
			'	<div class="edit-imageProcessing clearfix">' +
			'		<div class="work-space-wrap">' +
			'			<div class="work-space">' +
			'				<div class="pic">' +
			'					<div class="canvas-box">' +
			'						<canvas id="canvas" ></canvas>' +
			'					</div>' +
			'				</div>' +
			'				<div class="pic-info">' +
			'					<span class="pic-info-percent">100%</span>' +
			'					<span class="pic-info-name">{{fileName}}</span>' +
			'				</div>' +
			'			</div>' +
			'			<div class="work-space-mark">' +
			'				<div class="mark-describe-tit" id = "mark-describe-tit">' +
			'					<ul class="clearfix">' +
			'					</ul>' +
			'				</div>' +
			'				<div class="mark-describe-con" id = "mark-describe-con">' +
			'				</div>' +
			'			</div>' +
			'		</div>' +
			'		<div class="toolbar-wrap">' +
			'			<div class="mark-toolbar">' +
			'				<div class="mark-toolbar-shape">' +
			'					<div class="tit">标记模板</div>' +
			'					<div class="con clearfix" id = "img_templateBox">' +
			'					</div>' +
			'				</div>' +
			'				<div class="mark-toolbar-color clearfix">' +
			'					<div class="tit">颜色</div>' +
			'					<div class="con">' +
			'						<input id="markColor" type="color" value="#ffffff">' +
			'					</div>' +
			'				</div>' +
			'				<div class="del-mark-wrap clearfix">' +
			'					<div id="delMark" class="del-mark">删除标记</div>' +
			'					<div id="emptyMark" class="empty-mark">清空标记</div>' +
			'				</div>' +
			'			</div>' +
			'			<div class="other-toolbar clearfix">' +
			'				<span id="bigBtn"><i class="fa fa-search-plus"></i></span>' +
			'				<span id="smallBtn"><i class="fa fa-search-minus"></i></span>' +
			'				<span id="rightRotate"><i class="fa fa-repeat"></i></span>' +
			'				<span id="leftRotate"><i class="fa fa-undo"></i></span>' +
			/*'				<span id="cutBtn"><i class="fa fa-scissors"></i></span>'+*/
			'			</div>' +
			'			<div class="btn-imageProcessing clearfix">' +
			'				<div class="cancel-imageProcessing pull-left">取消</div>' +
			'				<div class="save-imageProcessing pull-right">保存</div>' +
			'			</div>' +
			'		</div>' +
			'	</div>' +
			'</script>'
	}
	var addImageProcessing = function () {
		return '<script id="tpl_question_addImageProcessing" type="text/html">' +
			'	<div class="clearfix add-imageProcessing">' +
			'		<div class="form-horizontal">' +
			'			<div class="form-group">' +
			'			    <label class="col-sm-2 control-label">患者姓名：</label>' +
			'			    <div class="col-sm-10">' +
			'					<p class="form-control-static">' +
			'						<font>{{patientName}}&nbsp;&nbsp;&nbsp;&nbsp;</font>' +
			'						<span>诊疗卡号：<font>{{if number}}{{number}} {{else}} - {{/if}}</font></span>' +
			'						<span>住院号：<font> {{if addmissionNumber}}{{addmissionNumber}} {{else}} - {{/if}}</font></span>' +
			'					</p>' +
			'			    </div>' +
			'			</div>' +
			'			<div class="form-group">' +
			'			    <label class="col-sm-2 control-label">影像设备：</label>' +
			'			    <div class="col-sm-10">' +
			'			      	<div class="radio" id="addImgEquipType">' +
			'						{{each equipList as val,i}}' +
			'			        	<label classId = "{{val.classId}}">' +
			'			          		<input type="radio" name = "img-equipType" value = "{{val.className}}" {{if i == 0}} checked {{/if}}> {{val.className}}' +
			'			        	</label>' +
			'						{{/each}}' +
			/*'			        	<label class= "manul-label">'+
			'			          		<input type="radio" name = "img-manualUpload" value = "手动上传"  checked > 手动上传'+
			'			        	</label>'+*/
			'			        	<label class= "manul-label">' +
			'			          		<input type="radio" name = "img-equipType" value = "手动上传" > 手动上传' +
			'			        	</label>' +
			'			      	</div>' +
			'			    </div>' +
			'			</div>' +
			'			<div class="form-group manual-hide">' +
			'			    <label class="col-sm-2 control-label">设备编号：</label>' +
			'			    <div class="col-sm-10">' +
			'			      	<div class="checkbox" id="equipType-checkbox">' +
			'						{{each equipNumberList as val,i}}' +
			'			        	<label class = "addImg_equip_{{val.classId}}" {{if !val.show }} style = "display:none;" {{/if}}>' +
			'			          		<input type="checkbox" value = "{{val.equipAlias}}" name = "addImg-equipNumber" equipId = "{{val.equipId}}" {{if val.show == true }} checked {{/if}}> {{val.equipAlias}}' +
			'			        	</label>' +
			'						{{/each}}' +
			'			      	</div>' +
			'			    </div>' +
			'			</div>' +
			'			<div class="form-group">' +
			'			    <label class="col-sm-2 control-label manual-hide">扫描时段：</label>' +
			'			    <div class="col-sm-5 manual-hide">' +
			'					<input type="date" class="form-control" id = "addImg_beginTime">' +
			'					<i class="fa fa-minus" aria-hidden="true"></i>' +
			'					<input type="date" class="form-control" id = "addImg_endTime">' +
			'			    </div>' +
			'		    	<div class="col-sm-5 pull-right">' +
			'		      		<div class="add-imageProcessing-manualUpload btn pull-right" id="addImg_manualUploadBtn">' +
			'						<form enctype="multipart/form-data" method = "post" name = "addImg" id="addImg">' +
			'						<input class="form-control" type="file" multiple="true"> 手动上传' +
			'						</form>' +
			'					</div>' +
			'		      		<div class="btn pull-right" id="addImg_autoUploadBtn">确定</div>' +
			'		      		<div class="btn pull-right manual-hide" id="addImg_searchBtn">查询</div>' +
			'		    	</div>' +
			'			</div>' +
			'		</div>' +
			'		<div class="clearfix add-imageProcessing-imageBox" id="add-imageProcessing-imageBox">' +
			'		</div>' +
			'		<div id="btn-toolbar" class="pull-right">' +
			'		</div>' +
			'	</div>' +
			'</script>'
	}
	var addImg_imageBox = function () {
		return '<script id="tpl_question_addImg_imageBox" type="text/html">' +
			'	{{if total == 0}}' +
			'		<div class="add-imageProcessing-imageBox-null">' +
			'			<i class="fa fa-inbox"></i>' +
			'			<p>未查询到图片<br>选择手动上传试试</p>' +
			'		</div>' +
			'	{{else}}' +
			'		<ul class="clearfix">' +
			'			{{each rows as value,i}}' +
			'			<li>' +
			'				<img src="{{value.imgNewUrl}}" srcId = "{{value.id}}" fileName = "{{value.sourceFileName}}" imgUrl = "{{value.filePath}}" isChecked = "{{value.checked}}"/>' +
			'				<span class="addImg_checked {{if value.checked == "1"}} addImg_checked_hide {{/if}}"><i class="fa fa-check-circle-o" aria-hidden="true"></i></span>' +
			'				<span>{{value.sourceFileName2}}_{{value.fileSize2}}k<br/>{{value.fileCreateTime}}</span>' +
			'			</li>' +
			'			{{/each}}' +
			'		</ul>' +
			'	{{/if}}' +
			'</script>'
	}
	var autocomplete = function () {
		return '<script id="tpl_question_autocomplete" type="text/html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard form-group form-group-sm col-sm-{{length}} col-md-{{length}} grid-label-{{labelLength}}">' +
			'		<label class="control-label {{align}}">{{label}}</label>' +
			'   	<div class="control-input qaCard-autocomplete">' +
			'			{{if status=="default"}}' +
			'   			<input type="text" class="form-control validatebox" name="{{name}}" value="{{val}}" data-validate="{{validate}}" data-attention="{{attention}}" placeholder="{{placeHolder}}" autocomplete="off">' +
			'				<div class="patientsList">' +
			'				</div>' +
			'			{{else if status=="readonly"}}' +
			'				<p class="form-control-static" name="{{name}}">{{val}}</p>' +
			'			{{else if status=="disabled"}}' +
			'   			<input type="text" class="form-control" name="{{name}}" value="{{val}}" placeholder="{{placeHolder}}" disabled>' +
			'			{{/if}}' +
			'		</div>' +
			'	</div>' +
			'</script>'
	}
	var text = function () {
		return '<script id="tpl_question_text" type="text/html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard form-group form-group-sm col-sm-{{length}} col-md-{{length}} grid-label-{{labelLength}}">' +
			'		<label class="control-label {{align}}">{{label}}</label>' +
			'   	<div class="control-input">' +
			'			{{if status=="default"}}' +
			'   			<input type="text" class="form-control validatebox" name="{{name}}" value="{{val}}" data-validate="{{validate}}" data-attention="{{attention}}" placeholder="{{placeHolder}}" autocomplete="off">' +
			'			{{else if status=="readonly"}}' +
			'				<p class="form-control-static" name="{{name}}">{{val}}</p>' +
			'			{{else if status=="disabled"}}' +
			'   			<input type="text" class="form-control" name="{{name}}" value="{{val}}" placeholder="{{placeHolder}}" disabled>' +
			'			{{/if}}' +
			'		</div>' +
			'	</div>' +
			'</script>'
	}


	var multiText = function () {
		return '<script id="tpl_question_multiText" type="text/html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard form-group form-group-sm col-sm-{{length}} col-md-{{length}} grid-label-{{labelLength}}">' +
			'		<label class="control-label {{align}}">{{label}}</label>' +
			'   	<div class="control-input">' +
			'			<div class="qaCard-multiText clearfix">' +
			'			{{if status=="default"}}' +
			'				{{each list as listobj i}}' +
			'					<div class="multiple" style="width:{{listobj.width}}">' +
			'   					<input type="text" class="form-control validatebox" name="{{name}}" value="{{listobj.val}}" data-validate="{{listobj.validate}}" data-attention="{{listobj.attention}}" placeholder="{{listobj.placeHolder}}">' +
			'						<span style="width:{{listobj.textWidth}}">{{listobj.subunit}}</span>' +
			'					</div>' +
			'				{{/each}}' +
			'			{{else if status=="readonly"}}' +
			'				{{each list as listobj i}}' +
			'					<div class="multiple" style="width:{{listobj.width}}">' +
			'						<p class="form-control-static" name="{{name}}">{{listobj.val}}</p>' +
			'						<span style="width:{{listobj.textWidth}}">{{listobj.subunit}}</span>' +
			'					</div>' +
			'				{{/each}}' +
			'			{{else if status=="disabled"}}' +
			'				{{each list as listobj i}}' +
			'					<div class="multiple" style="width:{{listobj.width}}">' +
			'   					<input type="text" class="form-control validatebox" name="{{name}}" value="{{listobj.val}}" data-validate="{{validate}}" data-attention="{{attention}}" placeholder="{{listobj.placeHolder}}" disabled>' +
			'						<span style="width:{{listobj.textWidth}}">{{listobj.subunit}}</span>' +
			'					</div>' +
			'				{{/each}}' +
			'			{{/if}}' +
			'			</div>' +
			'		</div>' +
			'	</div>' +
			'</script>'
	}
	var multiTextSelect = function () {
		return '<script id="tpl_question_multiTextSelect" type="text/html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard form-group form-group-sm col-sm-{{length}} col-md-{{length}} grid-label-{{labelLength}}">' +
			'		<label class="control-label {{align}}">{{label}}</label>' +
			'   	<div class="control-input">' +
			'			<div class="qaCard-multiTextSelect clearfix">' +
			'			{{if status=="default"}}' +
			'				{{each list as listobj i}}' +
			'					<div class="multi-text-select" style="width:{{listobj.width}}">' +
			'   					<input type="text" class="form-control validatebox" name="{{name}}" value="{{listobj.val1}}" data-validate="{{listobj.validate}}" data-attention="{{listobj.attention}}" placeholder="{{listobj.placeHolder}}">' +
			'						<select class="form-control" name="{{name}}">' +
			'							{{each listobj.sublist as value i}}' +
			'								<option value="{{value}}" {{if listobj.val2==value}}selected="selected"{{/if}}>{{value}}</option>' +
			'							{{/each}}' +
			'						</select>' +
			'					</div>' +
			'				{{/each}}' +
			'			{{else if status=="readonly"}}' +
			'				{{each list as listobj i}}' +
			'					<div class="multi-text-select" style="width:{{listobj.width}}">' +
			'						<p class="form-control-static" name="{{name}}">{{listobj.val1}}</p>' +
			'						<p class="form-control-static" name="{{name}}">{{listobj.val2}}</p>' +
			'					</div>' +
			'				{{/each}}' +
			'			{{else if status=="disabled"}}' +
			'				{{each list as listobj i}}' +
			'					<div class="multi-text-select" style="width:{{listobj.width}}">' +
			'   					<input type="text" class="form-control validatebox" name="{{name}}" value="{{listobj.val1}}" data-validate="{{listobj.validate}}" data-attention="{{listobj.attention}}" placeholder="{{listobj.placeHolder}}" disabled>' +
			'						<select class="form-control" name="{{name}}" disabled>' +
			'							{{each listobj.sublist as value i}}' +
			'								<option value="{{value}}" {{if listobj.val2==value}}selected="selected"{{/if}}>{{value}}</option>' +
			'							{{/each}}' +
			'						</select>' +
			'					</div>' +
			'				{{/each}}' +
			'			{{/if}}' +
			'			</div>' +
			'		</div>' +
			'	</div>' +
			'</script>'
	}
	var multiLabelText = function () {
		return '<script id="tpl_question_multiLabelText" type="text/html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard form-group form-group-sm col-sm-{{length}} col-md-{{length}} grid-label-{{labelLength}}">' +
			'		{{each list as value i}}' +
			'			<div class="pull-left qaCard-multiLabelText" style="width:{{value.width}}">' +
			'				<label class="control-label {{align}}">{{value.label}}</label>' +
			'   			<div class="control-input">' +
			'					{{if status=="default"}}' +
			'   					<input type="text" class="form-control validatebox" name="{{name}}" value="{{value.val}}" data-validate="{{value.validate}}" data-attention="{{value.attention}}" placeholder="{{value.placeHolder}}" autocomplete="off">' +
			'					{{else if status=="readonly"}}' +
			'						<p class="form-control-static" name="{{name}}">{{value.val}}</p>' +
			'					{{else if status=="disabled"}}' +
			'   					<input type="text" class="form-control" name="{{name}}" value="{{value.val}}" placeholder="{{value.placeHolder}}" disabled>' +
			'					{{/if}}' +
			'				</div>' +
			'			</div>' +
			'		{{/each}}' +
			'	</div>' +
			'</script>'
	}
	var date = function () {
		return '<script id="tpl_question_date" type="text/html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard form-group form-group-sm col-sm-{{length}} col-md-{{length}} grid-label-{{labelLength}}">' +
			'		<label class="control-label {{align}}">{{label}}</label>' +
			'   	<div class="control-input">' +
			'			{{if status=="default"}}' +
			'   			<input type="date" min="{{min}}" max="{{max}}" class="form-control validatebox" name="{{name}}" value="{{val}}" data-validate="{{validate}}" data-attention="{{attention}}" placeholder="{{placeHolder}}">' +
			'			{{else if status=="readonly"}}' +
			'				<p class="form-control-static" name="{{name}}">{{val}}</p>' +
			'			{{else if status=="disabled"}}' +
			'   			<input type="date" min="{{min}}" max="{{max}}" class="form-control" name="{{name}}" value="{{val}}" placeholder="{{placeHolder}}" disabled>' +
			'			{{/if}}' +
			'  		</div>' +
			'	</div>' +
			'</script>'
	}
	var textarea = function () {
		return '<script id="tpl_question_textarea" type="text/html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard form-group form-group-sm col-sm-{{length}} col-md-{{length}} grid-label-{{labelLength}}">' +
			'		<label class="control-label {{align}}">{{label}}</label>' +
			'   	<div class="control-input">' +
			'			{{if status=="default"}}' +
			'				<textarea class="form-control validatebox" rows="{{rows?rows:3}}" name="{{name}}" data-validate="{{validate}}" data-attention="{{attention}}" placeholder="{{placeHolder}}">{{val}}</textarea>' +
			'			{{else if status=="readonly"}}' +
			'				<p class="form-control-static form-control-static-textarea" name="{{name}}">{{val}}</p>' +
			'			{{else if status=="disabled"}}' +
			'				<textarea class="form-control" rows="{{rows?rows:3}}" name="{{name}}" placeholder="{{placeHolder}}" disabled>{{val}}</textarea>' +
			'			{{/if}}' +
			'  		</div>' +
			'	</div>' +
			'</script>'
	}
	var checkbox = function () {
		return '<script id="tpl_question_checkbox" type="text/html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard form-group form-group-sm col-sm-{{length}} col-md-{{length}} grid-label-{{labelLength}}">' +
			'		<label class="control-label {{align}}">{{label}}</label>' +
			'		{{if status=="default"}}' +
			'   		<div class="control-input checkbox">' +
			'				{{each list as item i}}' +
			'					<label class="checkbox-inline">' +
			'						<input class="validatebox" type="checkbox" name="{{name}}" value="{{item.key}}" {{if item.flag==true}} checked{{/if}} data-validate="{{validate}}" data-attention="{{attention}}">' +
			'						{{item.key}}' +
			'					</label>' +
			'				{{/each}}' +
			'   		</div>' +
			'		{{else if status=="readonly"}}' +
			'   		<div class="control-input checkbox disabled">' +
			'				{{each list as item i}}' +
			'					<label class="checkbox-inline">' +
			'						<input type="checkbox" name="{{name}}" value="{{item.key}}" {{if item.flag==true}} checked{{/if}} disabled>' +
			'						{{item.key}}' +
			'					</label>' +
			'				{{/each}}' +
			'   		</div>' +
			'		{{else if status=="disabled"}}' +
			'   		<div class="control-input checkbox disabled">' +
			'				{{each list as item i}}' +
			'					<label class="checkbox-inline">' +
			'						<input type="checkbox" name="{{name}}" value="{{item.key}}" {{if item.flag==true}} checked{{/if}} disabled>' +
			'						{{item.key}}' +
			'					</label>' +
			'				{{/each}}' +
			'   		</div>' +
			'		{{/if}}' +
			'	</div>' +
			'</script>'
	}
	var radio = function () {
		return '<script id="tpl_question_radio" type="text/html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard form-group form-group-sm col-sm-{{length}} col-md-{{length}} grid-label-{{labelLength}}">' +
			'		<label class="control-label {{align}}">{{label}}</label>' +
			'		{{if status=="default"}}' +
			'   		<div class="control-input radio">' +
			'				{{each list as item i}}' +
			'					<label class="radio-inline">' +
			'         				<input class="validatebox" type="radio" name="{{name}}" value="{{item.key}}" {{if item.flag==true}} checked{{/if}} data-validate="{{validate}}" data-attention="{{attention}}">' +
			'						{{item.key}}' +
			'					</label>' +
			'				{{/each}}' +
			'   		</div>' +
			'		{{else if status=="readonly"}}' +
			'   		<div class="control-input radio disabled">' +
			'				{{each list as item i}}' +
			'					<label class="radio-inline">' +
			'         				<input type="radio" name="{{name}}" value="{{item.key}}" {{if item.flag==true}} checked{{/if}} disabled>' +
			'						{{item.key}}' +
			'					</label>' +
			'				{{/each}}' +
			'   		</div>' +
			'		{{else if status=="disabled"}}' +
			'   		<div class="control-input radio disabled">' +
			'				{{each list as item i}}' +
			'					<label class="radio-inline">' +
			'         				<input type="radio" name="{{name}}" value="{{item.key}}" {{if item.flag==true}} checked{{/if}} disabled>' +
			'						{{item.key}}' +
			'					</label>' +
			'				{{/each}}' +
			'   		</div>' +
			'		{{/if}}' +
			'	</div>' +
			'</script>'
	}
	var select = function () {
		return '<script id="tpl_question_select" type="text/html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard form-group form-group-sm col-sm-{{length}} col-md-{{length}} grid-label-{{labelLength}}">' +
			'		<label class="control-label {{align}}">{{label}}</label>' +
			'   	<div class="control-input">' +
			'			{{if status=="default"}}' +
			'				<select class="form-control validatebox" name="{{name}}" data-validate="{{validate}}" data-attention="{{attention}}">' +
			'					{{each list as item i}}' +
			'						{{if val==item.key}}' +
			'							<option value="{{item.key}}" selected="selected">{{item.key}}</option>' +
			'						{{else}}' +
			'   						<option value="{{item.key}}">{{item.key}}</option>' +
			'						{{/if}}' +
			'					{{/each}}' +
			'				</select>' +
			'			{{else if status=="readonly"}}' +
			'				{{if val!=null&&val.length>0}}' +
			'					{{each list as item i}}' +
			'						{{if val===item.key}}' +
			'							<p class="form-control-static" name="{{name}}" data-val="{{item.key}}">{{item.key}}</p>' +
			'						{{/if}}' +
			'					{{/each}}' +
			'				{{else}}' +
			'					<p class="form-control-static">无</p>' +
			'				{{/if}}' +
			'			{{else if status=="disabled"}}' +
			'				<select class="form-control" name="{{name}}" disabled>' +
			'					{{each list as item i}}' +
			'						{{if val==item.key}}' +
			'							<option value="{{item.key}}" selected="selected">{{item.key}}</option>' +
			'						{{else}}' +
			'   						<option value="{{item.key}}">{{item.key}}</option>' +
			'						{{/if}}' +
			'					{{/each}}' +
			'				</select>' +
			'			{{/if}}' +
			'  		</div>' +
			'	</div>' +
			'</script>'
	}
	var multiSelectNumber = function () {
		return '<script id="tpl_question_multiSelectNumber" type="text/html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard form-group form-group-sm col-sm-{{length}} col-md-{{length}} grid-label-{{labelLength}}">' +
			'		<label class="control-label {{align}}">{{label}}</label>' +
			'   	<div class="control-input qaCard-multiSelect clearfix">' +
			'			{{if status=="default"}}' +
			'				{{each list as listobj i}}' +
			'					<div class="multiple" style="width:{{listobj.width}}">' +
			'						<select class="form-control validatebox mul-num" name="{{name}}" data-validate="{{listobj.validate}}" data-attention="{{listobj.attention}}">' +
			'							{{each listobj.sublist as value i}}' +
			'								<option value="{{value}}" {{if listobj.val==value}}selected="selected"{{/if}}>{{value}}</option>' +
			'							{{/each}}' +
			'						</select>' +
			'						<span style="width:{{listobj.textWidth}}">{{listobj.subunit}}</span>' +
			'					</div>' +
			'				{{/each}}' +
			'			{{else if status=="readonly"}}' +
			'				{{each list as listobj i}}' +
			'					<div class="multiple" style="width:{{listobj.width}}">' +
			'						<p class="form-control-static mul-num" name="{{name}}">{{listobj.val}}</p>' +
			'						<span style="width:{{listobj.textWidth}}">{{listobj.subunit}}</span>' +
			'					</div>' +
			'				{{/each}}' +
			'			{{else if status=="disabled"}}' +
			'				{{each list as listobj i}}' +
			'					<div class="multiple" style="width:{{listobj.width}}">' +
			'						<select class="form-control validatebox mul-num" name="{{name}}" data-validate="{{validate}}" data-attention="{{attention}}" disabled>' +
			'							{{each listobj.sublist as value i}}' +
			'								<option value="{{value}}" {{if listobj.val==value}}selected="selected"{{/if}}>{{value}}</option>' +
			'							{{/each}}' +
			'						</select>' +
			'						<span style="width:{{listobj.textWidth}}">{{listobj.subunit}}</span>' +
			'					</div>' +
			'				{{/each}}' +
			'			{{/if}}' +
			'  		</div>' +
			'	</div>' +
			'</script>'
	}
	var multiSelect = function () {
		return '<script id="tpl_question_multiSelect" type="text/html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard form-group form-group-sm col-sm-{{length}} col-md-{{length}} grid-label-{{labelLength}}">' +
			'		<label class="control-label {{align}}">{{label}}</label>' +
			'   	<div class="control-input qaCard-multiSelect clearfix">' +
			'			{{if status=="default"}}' +
			'				{{each list as listobj i}}' +
			'					<div class="multiple" style="width:{{listobj.width}}">' +
			'						{{if order && order=="reversed"}}' +
			'							<span style="width:{{listobj.textWidth}}">{{listobj.subunit}}</span>' +
			'							<select class="form-control validatebox mul-str" name="{{name}}" data-validate="{{listobj.validate}}" data-attention="{{listobj.attention}}">' +
			'								{{each listobj.sublist as value i}}' +
			'									<option value="{{value}}" {{if listobj.val==value}}selected="selected"{{/if}}>{{value}}</option>' +
			'								{{/each}}' +
			'							</select>' +
			'						{{else}}' +
			'							<select class="form-control validatebox mul-str" name="{{name}}" data-validate="{{listobj.validate}}" data-attention="{{listobj.attention}}">' +
			'								{{each listobj.sublist as value i}}' +
			'									<option value="{{value}}" {{if listobj.val==value}}selected="selected"{{/if}}>{{value}}</option>' +
			'								{{/each}}' +
			'							</select>' +
			'							<span style="width:{{listobj.textWidth}}">{{listobj.subunit}}</span>' +
			'						{{/if}}' +
			'					</div>' +
			'				{{/each}}' +
			'			{{else if status=="readonly"}}' +
			'				{{each list as listobj i}}' +
			'					<div class="multiple" style="width:{{listobj.width}}">' +
			'						{{if order && order=="reversed"}}' +
			'							<span style="width:{{listobj.textWidth}}">{{listobj.subunit}}</span>' +
			'							<p class="form-control-static mul-str" name="{{name}}">{{listobj.val}}</p>' +
			'						{{else}}' +
			'							<p class="form-control-static mul-str" name="{{name}}">{{listobj.val}}</p>' +
			'							<span style="width:{{listobj.textWidth}}">{{listobj.subunit}}</span>' +
			'						{{/if}}' +
			'					</div>' +
			'				{{/each}}' +
			'			{{else if status=="disabled"}}' +
			'				{{each list as listobj i}}' +
			'					<div class="multiple" style="width:{{listobj.width}}">' +
			'						{{if order && order=="reversed"}}' +
			'							<span style="width:{{listobj.textWidth}}">{{listobj.subunit}}</span>' +
			'							<select class="form-control validatebox mul-str" name="{{name}}" data-validate="{{validate}}" data-attention="{{attention}}" disabled>' +
			'								{{each listobj.sublist as value i}}' +
			'									<option value="{{value}}" {{if listobj.val==value}}selected="selected"{{/if}}>{{value}}</option>' +
			'								{{/each}}' +
			'							</select>' +
			'						{{else}}' +
			'							<select class="form-control validatebox mul-str" name="{{name}}" data-validate="{{validate}}" data-attention="{{attention}}" disabled>' +
			'								{{each listobj.sublist as value i}}' +
			'									<option value="{{value}}" {{if listobj.val==value}}selected="selected"{{/if}}>{{value}}</option>' +
			'								{{/each}}' +
			'							</select>' +
			'							<span style="width:{{listobj.textWidth}}">{{listobj.subunit}}</span>' +
			'						{{/if}}' +
			'					</div>' +
			'				{{/each}}' +
			'			{{/if}}' +
			'  		</div>' +
			'	</div>' +
			'</script>'
	}
	var gestationSimple = function () {	// 孕周简单题型(出生日期、预产期组合题目)
		return '<script id="tpl_question_gestationSimple" type="text/html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard-gestationSimple">' +
			'		{{include "tpl_question_date",children[0]}}' +
			'		{{include "tpl_question_date",children[1]}}' +
			'	</div>' +
			'</script>'
	}
	var gestationComplex = function () {	// 孕周复杂题型(出生日期、预产期、孕周组合题目)
		return '<script id="tpl_question_gestationComplex" type="text/html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard-gestationComplex">' +
			'		{{include "tpl_question_date",children[0]}}' +
			'		{{include "tpl_question_date",children[1]}}' +
			'		{{include "tpl_question_multiSelectNumber",children[2]}}' +
			'	</div>' +
			'</script>'
	}
	var overallBirth = function () {
		return '<script id="tpl_question_overallBirth" type="text/html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard-overallBirth">' +
			'		{{include "tpl_question_date",children[0]}}' +
			'		{{include "tpl_question_date",children[1]}}' +
			'		{{include "tpl_question_multiSelectNumber",children[2]}}' +
			'		{{include "tpl_question_text",children[3]}}' +
			'	</div>' +
			'</script>'
	}
	var correctAge = function () {
		return '<script id="tpl_question_correctAge" type="text/html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard-correctAge">' +
			'		{{include "tpl_question_date",children[0]}}' +
			'		{{include "tpl_question_date",children[1]}}' +
			'		{{include "tpl_question_text",children[2]}}' +
			'	</div>' +
			'</script>'
	}
	var growthSimple = function () {	// 生长发育简单题型
		return '<script id="tpl_question_growthSimple" type="text/html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}}>' +
			'		{{include "tpl_question_calc",children[0]}}' +
			'		{{include "tpl_question_text",children[1]}}' +
			'	</div>' +
			'</script>'
	}
	var growthComplex = function () {	// 生长发育复杂题型
		return '<script id="tpl_question_growthComplex" type="text/html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}}>' +
			'		{{include "tpl_question_calc",children[0]}}' +
			'		{{include "tpl_question_text",children[1]}}' +
			'		{{include "tpl_question_text",children[2]}}' +
			'	</div>' +
			'</script>'
	}
	var calc = function () {
		return '<script id="tpl_question_calc" type="text/html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard form-group form-group-sm col-sm-{{length}} col-md-{{length}} grid-label-{{labelLength}}">' +
			'		<label class="control-label {{align}}">{{label}}</label>' +
			'   	<div class="control-input qaCard-inputGroup">' + // qaCard-inputGroup 输入内容有icon的题型
			'			{{if status=="default"}}' +
			'   			<input type="text" class="form-control validatebox" name="{{name}}" value="{{val}}" unit="{{unit}}" calcType="{{calcType}}" data-validate="{{validate}}" data-attention="{{attention}}" placeholder="{{placeHolder}}" autocomplete="off">' +
			'				<div class="input-group-btn">' +
			'					<button type="button" class="btn btn-default">' +
			'						<i class="fa fa-area-chart"></i>' +
			'					</button>' +
			'				</div>' +
			'			{{else if status=="readonly"}}' +
			'				<p class="form-control-static" name="{{name}}" unit="{{unit}}" calcType="{{calcType}}">{{val}}</p>' +
			'				<div class="input-group-btn">' +
			'					<button type="button" class="btn btn-default">' +
			'						<i class="fa fa-area-chart"></i>' +
			'					</button>' +
			'				</div>' +
			'			{{else if status=="disabled"}}' +
			'   			<input type="text" class="form-control" name="{{name}}" value="{{val}}" unit="{{unit}}" calcType="{{calcType}}" placeholder="{{placeHolder}}" disabled>' +
			'				<div class="input-group-btn">' +
			'					<button type="button" class="btn btn-default">' +
			'						<i class="fa fa-area-chart"></i>' +
			'					</button>' +
			'				</div>' +
			'			{{/if}}' +
			'		</div>' +
			'	</div>' +
			'</script>'
	}
	var radioInput = function () {
		return '<script id="tpl_question_radioInput" type="text/html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard-radioInput" relevantText="{{children[0].relevantText}}">' +
			'		{{include "tpl_question_radio",children[0]}}' +
			'		{{include "tpl_question_text",children[1]}}' +
			'	</div>' +
			'</script>'
	}
	var checkboxInput = function () {
		return '<script id="tpl_question_checkboxInput" type="text/html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard-checkboxInput" relevantText="{{children[0].relevantText}}">' +
			'		{{include "tpl_question_checkbox",children[0]}}' +
			'		{{include "tpl_question_text",children[1]}}' +
			'	</div>' +
			'</script>'
	}
	var checkboxWithInput = function () {
		return '<script id="tpl_question_checkboxWithInput" type="text/html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard-checkboxWithInput qaCard form-group form-group-sm col-sm-{{length}} col-md-{{length}} grid-label-{{labelLength}}" relationKey="{{relationKey}}">' +
			'		<label class="control-label {{align}}">{{label}}</label>' +
			'		{{if status=="default"}}' +
			'   		<div class="control-input checkbox">' +
			'				{{each list as item i}}' +
			'					<label class="checkbox-inline">' +
			'						<input class="validatebox" type="checkbox" name="{{name}}" value="{{item.key}}" {{if item.flag==true}} checked{{/if}} data-validate="{{validate}}" data-attention="{{attention}}">' +
			'						{{item.text}}' +
			'					</label>' +
			'				{{/each}}' +
			'				<div class="qaCard-checkboxWithInput-input">' +
			'					<input type="text" class="form-control validatebox" name="{{name}}" value="{{valText}}" data-validate="{{validate}}" data-attention="{{attention}}" placeholder="{{placeHolder}}">' +
			'				</div>' +
			'   		</div>' +
			'		{{else if status=="readonly"}}' +
			'   		<div class="control-input checkbox disabled">' +
			'				{{each list as item i}}' +
			'					<label class="checkbox-inline">' +
			'						<input type="checkbox" name="{{name}}" value="{{item.key}}" {{if item.flag==true}} checked{{/if}} disabled>' +
			'						{{item.text}}' +
			'					</label>' +
			'				{{/each}}' +
			'				<div class="qaCard-checkboxWithInput-input">' +
			'					<p class="form-control-static" name="{{name}}">{{valText}}</p>' +
			'				</div>' +
			'   		</div>' +
			'		{{else if status=="disabled"}}' +
			'   		<div class="control-input checkbox disabled">' +
			'				{{each list as item i}}' +
			'					<label class="checkbox-inline">' +
			'						<input type="checkbox" name="{{name}}" value="{{item.key}}" {{if item.flag==true}} checked{{/if}} disabled>' +
			'						{{item.text}}' +
			'					</label>' +
			'				{{/each}}' +
			'				<div class="qaCard-checkboxWithInput-input">' +
			'					<input type="text" class="form-control" name="{{name}}" value="{{valText}}" placeholder="{{placeHolder}}" disabled>' +
			'				</div>' +
			'   		</div>' +
			'		{{/if}}' +
			'	</div>' +
			'</script>'
	}
	var radioWithInput = function () {
		return '<script id="tpl_question_radioWithInput" type="text/html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard-radioWithInput qaCard form-group form-group-sm col-sm-{{length}} col-md-{{length}} grid-label-{{labelLength}}" relationKey="{{relationKey}}">' +
			'		<label class="control-label {{align}}">{{label}}</label>' +
			'		{{if status=="default"}}' +
			'   		<div class="control-input radio">' +
			'				{{each list as item i}}' +
			'					<label class="radio-inline">' +
			'         				<input class="validatebox" type="radio" name="{{name}}" value="{{item.key}}" {{if item.flag==true}} checked{{/if}} data-validate="{{validate}}" data-attention="{{attention}}">' +
			'						{{item.key}}' +
			'					</label>' +
			'				{{/each}}' +
			'				<div class="qaCard-radioWithInput-input">' +
			'					<input type="text" class="form-control validatebox" name="{{name}}" value="{{valText}}" data-validate="{{validate}}" data-attention="{{attention}}" placeholder="{{placeHolder}}">' +
			'				</div>' +
			'   		</div>' +
			'		{{else if status=="readonly"}}' +
			'   		<div class="control-input radio disabled">' +
			'				{{each list as item i}}' +
			'					<label class="radio-inline">' +
			'         				<input type="radio" name="{{name}}" value="{{item.key}}" {{if item.flag==true}} checked{{/if}} disabled>' +
			'						{{item.key}}' +
			'					</label>' +
			'				{{/each}}' +
			'				<div class="qaCard-radioWithInput-input">' +
			'					<p class="form-control-static" name="{{name}}">{{valText}}</p>' +
			'				</div>' +
			'   		</div>' +
			'		{{else if status=="disabled"}}' +
			'   		<div class="control-input radio disabled">' +
			'				{{each list as item i}}' +
			'					<label class="radio-inline">' +
			'         				<input type="radio" name="{{name}}" value="{{item.key}}" {{if item.flag==true}} checked{{/if}} disabled>' +
			'						{{item.key}}' +
			'					</label>' +
			'				{{/each}}' +
			'				<div class="qaCard-radioWithInput-input">' +
			'					<input type="text" class="form-control validatebox" name="{{name}}" value="{{valText}}" data-validate="{{validate}}" data-attention="{{attention}}" placeholder="{{placeHolder}}" disabled>' +
			'				</div>' +
			'   		</div>' +
			'		{{/if}}' +
			'	</div>' +
			'</script>'
	}
	var checkboxRelation = function () {
		return '<script id="tpl_question_checkboxRelation" type="text/html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard qaCard-checkboxRelation form-group form-group-sm col-sm-{{length}} col-md-{{length}} grid-label-{{labelLength}}">' +
			'		<label class="control-label {{align}}">{{label}}</label>' +
			'		{{if status=="default"}}' +
			'   		<div class="control-input checkbox">' +
			'				{{each list as item i}}' +
			'					<label class="checkbox-inline">' +
			'						<input class="validatebox" type="checkbox" name="{{name}}" rId="{{item.relationId}}" value="{{item.key}}" {{if item.flag==true}} checked{{/if}} data-validate="{{validate}}" data-attention="{{attention}}">' +
			'						{{item.text}}' +
			'					</label>' +
			'				{{/each}}' +
			'   		</div>' +
			'		{{else if status=="readonly"}}' +
			'   		<div class="control-input checkbox disabled">' +
			'				{{each list as item i}}' +
			'					<label class="checkbox-inline">' +
			'						<input type="checkbox" name="{{name}}" rId="{{item.relationId}}" value="{{item.key}}" {{if item.flag==true}} checked{{/if}} disabled>' +
			'						{{item.text}}' +
			'					</label>' +
			'				{{/each}}' +
			'   		</div>' +
			'		{{else if status=="disabled"}}' +
			'   		<div class="control-input checkbox disabled">' +
			'				{{each list as item i}}' +
			'					<label class="checkbox-inline">' +
			'						<input type="checkbox" name="{{name}}" rId="{{item.relationId}}" value="{{item.key}}" {{if item.flag==true}} checked{{/if}} disabled>' +
			'						{{item.text}}' +
			'					</label>' +
			'				{{/each}}' +
			'   		</div>' +
			'		{{/if}}' +
			'	</div>' +
			'</script>'
	}
	var radioRelation = function () {
		return '<script id="tpl_question_radioRelation" type="text/html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard qaCard-radioRelation form-group form-group-sm col-sm-{{length}} col-md-{{length}} grid-label-{{labelLength}}">' +
			'		<label class="control-label {{align}}">{{label}}</label>' +
			'		{{if status=="default"}}' +
			'   		<div class="control-input radio">' +
			'				{{each list as item i}}' +
			'					<label class="radio-inline">' +
			'         				<input class="validatebox" type="radio" name="{{name}}" rId="{{item.relationId}}"  value="{{item.key}}" {{if item.flag==true}} checked{{/if}} data-validate="{{validate}}" data-attention="{{attention}}">' +
			'						{{item.key}}' +
			'					</label>' +
			'				{{/each}}' +
			'   		</div>' +
			'		{{else if status=="readonly"}}' +
			'   		<div class="control-input radio disabled">' +
			'				{{each list as item i}}' +
			'					<label class="radio-inline">' +
			'         				<input type="radio" name="{{name}}" rId="{{item.relationId}}" value="{{item.key}}" {{if item.flag==true}} checked{{/if}} disabled>' +
			'						{{item.key}}' +
			'					</label>' +
			'				{{/each}}' +
			'   		</div>' +
			'		{{else if status=="disabled"}}' +
			'   		<div class="control-input radio disabled">' +
			'				{{each list as item i}}' +
			'					<label class="radio-inline">' +
			'         				<input type="radio" name="{{name}}" rId="{{item.relationId}}" value="{{item.key}}" {{if item.flag==true}} checked{{/if}} disabled>' +
			'						{{item.key}}' +
			'					</label>' +
			'				{{/each}}' +
			'   		</div>' +
			'		{{/if}}' +
			'	</div>' +
			'</script>'
	}
	var textareaAssess = function () {
		return '<script id="tpl_question_textareaAssess" type="text/html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard form-group form-group-sm col-sm-{{length}} col-md-{{length}} grid-label-{{labelLength}}">' +
			'		<label class="control-label {{align}}">{{label}}</label>' +
			'   	<div class="control-input qaCard-textareaAssess">' +
			'			{{if status=="default"}}' +
			'				<textarea class="form-control validatebox" rows="{{rows?rows:3}}" name="{{name}}" data-validate="{{validate}}" data-attention="{{attention}}" placeholder="{{placeHolder}}">{{val}}</textarea>' +
			'				<div class="btn-Assess clickable" assessType="{{assessType}}">{{btnText}}</div>' +
			'			{{else if status=="readonly"}}' +
			'				<p class="form-control-static form-control-static-textarea" name="{{name}}">{{val}}</p>' +
			'				<div class="btn-Assess" assessType="{{assessType}}">{{btnText}}</div>' +
			'			{{else if status=="disabled"}}' +
			'				<textarea class="form-control" rows="{{rows?rows:3}}" name="{{name}}" placeholder="{{placeHolder}}" disabled>{{val}}</textarea>' +
			'				<div class="btn-Assess" assessType="{{assessType}}">{{btnText}}</div>' +
			'			{{/if}}' +
			'  		</div>' +
			'	</div>' +
			'</script>'
	}
	var address = function () {
		return '<script id="tpl_question_address" type="text/html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard qaCard-address form-group form-group-sm col-sm-{{length}} col-md-{{length}} grid-label-{{labelLength}}">' +
			'		<label class="control-label {{align}}">{{label}}</label>' +
			'   	<div class="control-input qaCard-multiSelect clearfix">' +
			'			{{if status=="default"}}' +
			'				{{each list as listobj i}}' +
			'					<div class="multiple" style="width:{{listobj.width}}">' +
			'						<select class="form-control validatebox mul-str" name="{{name}}" val="{{listobj.val}}" data-validate="{{listobj.validate}}" data-attention="{{listobj.attention}}">' +
			'						</select>' +
			'						<span style="width:{{listobj.textWidth}}">{{listobj.subunit}}</span>' +
			'					</div>' +
			'				{{/each}}' +
			'			{{else if status=="readonly"}}' +
			'				{{each list as listobj i}}' +
			'					<div class="multiple" style="width:{{listobj.width}}">' +
			'						<p class="form-control-static mul-str" name="{{name}}">{{listobj.val}}</p>' +
			'						<span style="width:{{listobj.textWidth}}">{{listobj.subunit}}</span>' +
			'					</div>' +
			'				{{/each}}' +
			'			{{else if status=="disabled"}}' +
			'				{{each list as listobj i}}' +
			'					<div class="multiple" style="width:{{listobj.width}}">' +
			'						<select class="form-control validatebox mul-str" name="{{name}}" val="{{listobj.val}}" data-validate="{{validate}}" data-attention="{{attention}}" disabled>' +
			'						</select>' +
			'						<span style="width:{{listobj.textWidth}}">{{listobj.subunit}}</span>' +
			'					</div>' +
			'				{{/each}}' +
			'			{{/if}}' +
			'  		</div>' +
			'	</div>' +
			'</script>'
	}
	var imagesMultiText = function () {
		return '<script id="tpl_question_imagesMultiText" type="text/html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard form-group form-group-sm col-sm-{{length}} col-md-{{length}} grid-label-{{labelLength}}">' +
			'		<label class="control-label {{align}}">{{label}}</label>' +
			'   	<div class="control-input">' +
			'   		<div class="qaCard-images clearfix">' +
			'				{{each images as item i}}' +
			'					<div class="qaCard-image {{if !item.description}}mb5{{/if}}" style="width:{{item.width}}">' +
			'		    			<img alt="{{item.description}}" src="{{item.src}}">' +
			'						{{if item.description}}' +
			'						<span>{{item.description}}</span>' +
			'						{{/if}}' +
			'					</div>' +
			'				{{/each}}' +
			'			</div>' +
			'			<div class="qaCard-multiText clearfix">' +
			'			{{if status=="default"}}' +
			'				{{each list as listobj i}}' +
			'					<div class="multiple" style="width:{{listobj.width}}">' +
			'   					<input type="text" class="form-control validatebox" name="{{name}}" value="{{listobj.val}}" data-validate="{{listobj.validate}}" data-attention="{{listobj.attention}}" placeholder="{{listobj.placeHolder}}">' +
			'						<span style="width:{{listobj.textWidth}}">{{listobj.subunit}}</span>' +
			'					</div>' +
			'				{{/each}}' +
			'			{{else if status=="readonly"}}' +
			'				{{each list as listobj i}}' +
			'					<div class="multiple" style="width:{{listobj.width}}">' +
			'						<p class="form-control-static" name="{{name}}">{{listobj.val}}</p>' +
			'						<span style="width:{{listobj.textWidth}}">{{listobj.subunit}}</span>' +
			'					</div>' +
			'				{{/each}}' +
			'			{{else if status=="disabled"}}' +
			'				{{each list as listobj i}}' +
			'					<div class="multiple" style="width:{{listobj.width}}">' +
			'   					<input type="text" class="form-control validatebox" name="{{name}}" value="{{listobj.val}}" data-validate="{{validate}}" data-attention="{{attention}}" placeholder="{{listobj.placeHolder}}" disabled>' +
			'						<span style="width:{{listobj.textWidth}}">{{listobj.subunit}}</span>' +
			'					</div>' +
			'				{{/each}}' +
			'			{{/if}}' +
			'  			</div>' +
			'  		</div>' +
			'	</div>' +
			'</script>'
	}
	var imagesTextarea = function () {
		return '<script id="tpl_question_imagesTextarea" type="text/html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard form-group form-group-sm col-sm-{{length}} col-md-{{length}} grid-label-{{labelLength}}">' +
			'		<label class="control-label {{align}}">{{label}}</label>' +
			'   	<div class="control-input">' +
			'   		<div class="qaCard-images clearfix">' +
			'				{{each images as item i}}' +
			'					<div class="qaCard-image {{if !item.description}}mb5{{/if}}" style="width:{{item.width}}">' +
			'		    			<img alt="{{item.description}}" src="{{item.src}}">' +
			'						{{if item.description}}' +
			'						<span>{{item.description}}</span>' +
			'						{{/if}}' +
			'					</div>' +
			'				{{/each}}' +
			'			</div>' +
			'			{{if status=="default"}}' +
			'				<textarea class="form-control validatebox" rows="{{rows?rows:3}}" name="{{name}}" data-validate="{{validate}}" data-attention="{{attention}}" placeholder="{{placeHolder}}">{{val}}</textarea>' +
			'			{{else if status=="readonly"}}' +
			'				<p class="form-control-static form-control-static-textarea" name="{{name}}">{{val}}</p>' +
			'			{{else if status=="disabled"}}' +
			'				<textarea class="form-control" rows="{{rows?rows:3}}" name="{{name}}" placeholder="{{placeHolder}}" disabled>{{val}}</textarea>' +
			'			{{/if}}' +
			'  		</div>' +
			'	</div>' +
			'</script>'
	}
	var staticText = function () {
		return '<script id="tpl_question_staticText" type="text/html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard form-group form-group-sm col-sm-{{length}} col-md-{{length}} grid-label-{{labelLength}}">' +
			'		<label class="control-label {{align}}">{{label}}</label>' +
			'   	<div class="control-input">' +
			'			<p class="form-control-static" name="{{name}}">{{val}}</p>' +
			'  		</div>' +
			'	</div>' +
			'</script>'
	}
	var staticFormat = function () {
		return '<script id="tpl_question_staticFormat" type="text/html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard form-group form-group-sm col-sm-{{length}} col-md-{{length}} grid-label-{{labelLength}}">' +
			'		<label class="control-label {{align}}">{{label}}</label>' +
			'   	<div class="control-input">' +
			'			<p class="form-control-static" name="{{name}}">{{val}}</p>' +
			'  		</div>' +
			'	</div>' +
			'</script>'
	}
	var staticAge = function () {
		return '<script id="tpl_question_staticAge" type="text/html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard form-group form-group-sm col-sm-{{length}} col-md-{{length}} grid-label-{{labelLength}}">' +
			'		<label class="control-label {{align}}">{{label}}</label>' +
			'   	<div class="control-input">' +
			'			<p class="form-control-static" name="{{name}}">{{val}}</p>' +
			'  		</div>' +
			'	</div>' +
			'</script>'
	}
	var staticAtualAge = function () {
		return '<script id="tpl_question_staticAtualAge" type="text/html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard form-group form-group-sm col-sm-{{length}} col-md-{{length}} grid-label-{{labelLength}}">' +
			'		<label class="control-label {{align}}">{{label}}</label>' +
			'   	<div class="control-input">' +
			'			<p class="form-control-static" name="{{name}}">{{val}}</p>' +
			'  		</div>' +
			'	</div>' +
			'</script>'
	}
	var staticGestationalAge = function () {
		return '<script id="tpl_question_staticGestationalAge" type="text/html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard form-group form-group-sm col-sm-{{length}} col-md-{{length}} grid-label-{{labelLength}}">' +
			'		<label class="control-label {{align}}">{{label}}</label>' +
			'   	<div class="control-input">' +
			'			<p class="form-control-static" name="{{name}}">{{val}}</p>' +
			'  		</div>' +
			'	</div>' +
			'</script>'
	}
	var staticTextarea = function () {
		return '<script id="tpl_question_staticTextarea" type="text/html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard form-group form-group-sm col-sm-{{length}} col-md-{{length}} grid-label-{{labelLength}}">' +
			'		<label class="control-label {{align}}">{{label}}</label>' +
			'   	<div class="control-input">' +
			'			<p class="form-control-static form-control-static-textarea" name="{{name}}">{{val}}</p>' +
			'  		</div>' +
			'	</div>' +
			'</script>'
	}
	var hidden = function () {
		return '<script id="tpl_question_hidden" type="text/html">' +
			'	<input {{if relationId}}relationId="{{relationId}}"{{/if}} type="hidden" name="{{name}}" value="{{val}}">' +
			'</script>'
	}
	var space = function () {
		return '<script id="tpl_question_space" type="text/html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard form-group form-group-sm col-sm-{{length}} col-md-{{length}}" style="height:30px;">' +
			'	</div>' +
			'</script>'
	}
	var clear = function () {
		return '<script id="tpl_question_clear" type="text/html">' +
			'   <div {{if relationId}}relationId="{{relationId}}"{{/if}} style="clear:both;"></div>' +
			'</script>'
	}
	var uploadPictures = function () {
		return '<script id="tpl_question_uploadPictures" type="text/html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard form-group form-group-sm col-sm-{{length}} col-md-{{length}} grid-label-{{labelLength}}">' +
			'		<label class="control-label {{align}}">{{label}}</label>' +
			'   	<div class="control-input">' +
			'   		<div class="qaCard-pictures clearfix">' +
			'				{{each val as item i}}' +
			'					<div class="picture" data-value="{{item}}" style="background:url({{item}}?x-oss-process=image/resize,h_100) no-repeat center;background-size:cover">' +
			'					{{if status=="default"}}' +
			'						<div class="picture-del-box"><span class="picture-del"><i class="fa fa-trash-o"></i>删除</span></div>' +
			'					{{/if}}' +
			'					</div>' +
			'				{{/each}}' +
			'				<div class="qaCard-uploadBtn">' +
			'		            <div class="uploadBtnBg">' +
			'						<i class="fa fa-plus"></i>' +
			'						<span>点击添加影像</span>' +
			'					</div>' +
			'					{{if status=="default"}}' +
			'		            	<input class="form-control validatebox" type="file" name="{{name}}" multiple="true">' +
			'					{{else if status=="readonly"}}' +
			'		            	<input class="form-control validatebox disabled" type="file" name="{{name}}" multiple="true" disabled>' +
			'					{{else if status=="disabled"}}' +
			'		            	<input class="form-control validatebox disabled" type="file" name="{{name}}" multiple="true" disabled>' +
			'					{{/if}}' +
			'		        </div>' +
			'			</div>' +
			'  		</div>' +
			'	</div>' +
			'</script>'
	}

	var patientsByPhone = function () {
		return '<script id="tpl_question_patientsByPhone" type="text/html">' +
			'	<ul>' +
			'		<li class="addPatientBtn"><i class="fa fa-plus"></i>添加</li>' +
			'		{{each rows as value i}}' +
			'		<li class="patient-item" ptSchemeId="{{value.ptSchemeId}}">' +
			'			{{value.userName}}' +
			' 			({{if value.gender == "F"}}' +
			'				<span class="girl">女孩</span>' +
			'			{{else}}' +
			'				<span class="boy">男孩</span>' +
			'			{{/if}})' +
			'		</li>' +
			'		{{/each}}' +
			'	</ul>' +
			'</script>'
	}

	var assessFooter = function () {
		return '<script id="tpl_question_assessFooter" type="text/html">' +
			'	<button type="button" class="btn btn-primary">算出评分并返回</button>' +
			'	{{if flag}}' +
			'	<button type="button" class="btn btn-default">重置</button>' +
			'	{{/if}}' +
			'</script>'
	}
	var highrisk = function () {
		return '<script id="tpl_question_highRisk" type="text/html">' +
			'	{{each list as row}}' +
			'		<div class="asCard">' +
			'			<div class="asCard-subtit">{{row.label}}</div>' +
			'			<div class="clearfix asCard-list">' +
			'				{{each row.list as value}}' +
			'					<div>' +
			'						<div class="pull-left">' +
			'							<label><input type="checkbox" {{if value.flag}}checked{{/if}} value="{{value.id}}.{{value.name}}" score="{{value.score}}" id="{{value.id}}"> {{if value.id < 10 }}0{{/if}}{{value.id}}.{{value.name}}</label>' +
			'						</div>' +
			'						<div class="pull-right">{{value.score}}分</div>' +
			'					</div>' +
			'				{{/each}}' +
			'			</div>' +
			'		</div>' +
			'	{{/each}}' +
			'</script>'
	}
	var aims = function () {
		return '<script id="tpl_question_aims" type="text/html">' +
			'	<div class="clearfix asCard-aims-tab">' +
			'		{{each list as row}}' +
			'			<div {{if row.flag}}class="checked"{{/if}}>{{row.label}} {{if row.flag}}({{row.num}}){{/if}}</div>' +
			'		{{/each}}' +
			'	</div>' +
			'	<div class="asCard-aims-box">' +
			'	{{each list as row}}' +
			'		<div class="clearfix asCard-aims-list">' +
			'			{{each row.list as value}}' +
			'				<div class="asCard-aims {{if value.flag}}active{{/if}}" score="{{value.score}}" id="{{row.type}}{{value.id}}">' +
			'					<div class="asCard-aims-name">{{value.name}}</div>' +
			'					<div class="asCard-aims-pic"><img src="{{value.picture}}"></div>' +
			'					<div>{{value.desc}}</div>' +
			'					<div class="asCard-aims-symbol">' +
			'						<i class="fa {{if value.flag}}fa-check-circle{{else}}fa-minus-circle{{/if}}" aria-hidden="true"></i>' +
			'					</div>' +
			'				</div>' +
			'			{{/each}}' +
			'		</div>' +
			'	{{/each}}' +
			'	</div>' +
			'</script>'
	}

	var tableInput = function () {
		return '<script id="tpl_question_tableInput" type="text-html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard-tableInput qaCard form-group form-group-sm col-sm-{{length}} col-md-{{length}}">' +
			'		<table class="table table-bordered">' +
			'				<tr>' +
			'					{{each listX as value i}}' +
			'					<th>{{value}}</th>' +
			'					{{/each}}' +
			'				</tr>' +
			'				{{each tabledList as value i}}' +
			'				<tr>' +
			'					{{each value.rowData as item i}}' +
			'					<td class="qaCard-table-input">' +
			'						{{if item.flag =="1"}}' +
			'							{{if status=="default"}}' +
			'								<input class="form-control validatebox" name="{{item.id}}" type="text" value="{{item.val}}" data-validate="{{item.validate}}" data-attention="{{item.attention}}" placeholder="{{item.placeHolder}}">' +
			'							{{else if status=="readonly"}}' +
			'								{{item.val}}' +
			'							{{else if status=="disabled"}}' +
			'								{{item.val}}' +
			'							{{/if}}' +
			'						{{else if item.flag =="0"}}' +
			'							{{item.rowLabel}}' +
			'						{{/if}}' +
			'					</td>' +
			'					{{/each}}' +
			'				</tr>' +
			'				{{/each}}' +
			'		</table>' +
			'	</div>' +
			'</script>'
	}
	var karteName = function () {
		return '<script id="tpl_question_karteName" type="text-html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard-karteName qaCard form-group form-group-sm col-sm-{{length}} col-md-{{length}} grid-label-{{labelLength}}">' +
			'		<label class="control-label {{align}}">{{label}}</label>' +
			'   	<div class="control-input">' +
			'			{{if status=="default"}}' +
			'   			<input type="text" class="form-control validatebox" name="{{name}}" value="{{val}}" data-validate="{{validate}}" data-attention="{{attention}}" placeholder="{{placeHolder}}" autocomplete="off">' +
			'			{{else if status=="readonly"}}' +
			'				<p class="form-control-static" name="{{name}}">{{val}}</p>' +
			'			{{else if status=="disabled"}}' +
			'   			<input type="text" class="form-control" name="{{name}}" value="{{val}}" placeholder="{{placeHolder}}" disabled>' +
			'			{{/if}}' +
			'		</div>' +
			'	</div>' +
			'</script>'
	}
	var sudoku = function () {
		return '<script id="tpl_question_sudoku" type="text-html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard-sudoku qaCard form-group form-group-sm col-sm-{{length}} col-md-{{length}} grid-label-{{labelLength}}">' +
			'		<label class="control-label {{align}}">{{label}}</label>' +
			'   	<div class="control-input">' +
			'			{{if status=="default"}}' +
			'				<div class="sudoku">' +
			'					<div class="sudoku-input">' +
			'						<input type="text" class="form-control validatebox" name="{{name}}" value="{{val}}" data-validate="{{validate}}" data-attention="{{attention}}" placeholder="{{placeHolder}}">' +
			'						<i class="fa fa-caret-down sudoku-dropdown-toggle clickable"></i>' +
			'					</div>' +
			'					<ul class="sudoku-dropdown">' +
			'						{{each list as item i}}' +
			'							<li class="{{if item.clickable}}clickable{{/if}} {{if item.flag}}active{{/if}}">{{item.text}}</li>' +
			'						{{/each}}' +
			'					</ul>' +
			'				</div>' +
			'			{{else if status=="readonly"}}' +
			'				<div class="sudoku">' +
			'					<div class="sudoku-input">' +
			'						<p class="form-control-static">{{val}}</p>' +
			'						<i class="fa fa-caret-down sudoku-dropdown-toggle readonly"></i>' +
			'					</div>' +
			'					<ul class="sudoku-dropdown">' +
			'						{{each list as item i}}' +
			'							<li class="{{if item.clickable}}clickable{{/if}} {{if item.flag}}active{{/if}}">{{item.text}}</li>' +
			'						{{/each}}' +
			'					</ul>' +
			'				</div>' +
			'			{{else if status=="disabled"}}' +
			'				<div class="sudoku">' +
			'					<div class="sudoku-input">' +
			'						<input type="text" class="form-control validatebox" name="{{name}}" value="{{val}}" data-validate="{{validate}}" data-attention="{{attention}}" placeholder="{{placeHolder}}" disabled>' +
			'						<i class="fa fa-caret-down sudoku-dropdown-toggle"></i>' +
			'					</div>' +
			'					<ul class="sudoku-dropdown">' +
			'						{{each list as item i}}' +
			'							<li class="{{if item.clickable}}clickable{{/if}} {{if item.flag}}active{{/if}}">{{item.text}}</li>' +
			'						{{/each}}' +
			'					</ul>' +
			'				</div>' +
			'			{{/if}}' +
			'		</div>' +
			'	</div>' +
			'</script>'
	}

	var geneFusion = function () {
		return '<script id="tpl_question_geneFusion" type="text-html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} configParams="{{configParams}}" class="qaCard-geneFusion col-sm-12 col-md-12">' +
			'	</div>' +
			'</script>'
	}

	var projectItem = function () {
		return '<script id="tpl_question_projectItem" type="text-html">' +
			'	{{each list as value i}}' +
			'	{{if value.showFlag == "01"}}' +
			'	<div class="qaCard form-group form-group-sm col-sm-{{configParams.length}} col-md-{{configParams.length}} grid-label-{{configParams.labelLength}}">' +
			'		<label class="control-label {{align}}">{{value.configName}}</label>' +
			'   	<div class="control-input string-change-arr">' +
			'			<select class="form-control" name="{{value.id}}">' +
			'				{{each configParams.list as item j}}' +
			'				<option value="{{item.text}}" {{if value.val1 == item.text}}selected{{/if}}>{{item.text}}</option>' +
			'				{{/each}}' +
			'			</select>' +
			'   		<input class="form-control" type="text" name="{{value.id}}" value="{{value.val2}}">' +
			'		</div>' +
			'	</div>' +
			'	{{/if}}' +
			'	{{/each}}' +
			'	<div class="geneFusion-manager-btn">' +
			'		<i class="fa fa-pencil-square-o"></i>' +
			'		<span>{{configParams.btnText}}</span>' +
			'	</div>' +
			'</script>'
	}

	var projectItemManager = function () {
		return '<script id="tpl_question_projectItemManager" type="text-html">' +
			'	<div class="projectItem-box">' +
			'		<ul>' +
			'			{{each list as value i}}' +
			'				<li class="clearfix" configType="{{value.configType}}" configCode="{{value.configCode}}" showFlag="{{value.showFlag}}" id="{{value.id}}">' +
			'					<span>{{value.configName}}</span>' +
			'					<i class="fa fa-times-circle-o projectItem-del"></i>' +
			'					<i class="fa {{if value.showFlag == "01"}}fa-eye{{else}}fa-eye-slash{{/if}} projectItem-show"></i>' +
			'				</li>' +
			'			{{/each}}' +
			'		</ul>' +
			'	</div>' +
			'	<div class="add-projectItem-wrap">' +
			'		<div class="add-projectItem-btn">' +
			'			<i class="fa fa-plus"></i>' +
			'			<span>添加项目</span>' +
			'		</div>' +
			'		<div class="add-projectItem-form">' +
			'			<input type="text" name="configName" class="form-control" placeholder="请输入项目名称">' +
			//'			<input type="text" class="form-control" placeholder="请输入项目编码">'+
			'			<div class="btn btn-primary add-projectItem-saveBtn">保存</div>' +
			'		</div>' +
			'	</div>' +
			'</script>'
	}

	var sudokuPictures = function () {
		return '<script id="tpl_question_sudokuPictures" type="text-html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard form-group form-group-sm col-sm-{{length}} col-md-{{length}} grid-label-{{labelLength}}">' +
			'		<label class="control-label {{align}}">{{label}}</label>' +
			'   	<div class="control-input">' +
			'			<div class="qaCard-sudokuPic-box clearfix" name={{name}}>' +
			'				{{each val as value i}}' +
			'		   			<div class="qaCard-sudokuPictures">' +
			'						{{if value == ""}}' +
			'							<div class="upload">' +
			'					            <div class="upload-bg">' +
			'									<i class="fa fa-plus"></i>' +
			'									<span>点击添加影像</span>' +
			'								</div>' +
			'								{{if status=="default"}}' +
			'					            	<input class="form-control validatebox" type="file" name="{{name}}">' +
			'								{{else if status=="readonly"}}' +
			'					            	<input class="form-control validatebox disabled" type="file" name="{{name}}" disabled>' +
			'								{{else if status=="disabled"}}' +
			'					            	<input class="form-control validatebox disabled" type="file" name="{{name}}" disabled>' +
			'								{{/if}}' +
			'					        </div>' +
			'						{{else}}' +
			'							<div class="picture" data-value="{{value}}" style="background:url({{value}}?x-oss-process=image/resize,h_100) no-repeat center;background-size:cover">' +
			'								{{if status=="default"}}' +
			'									<div class="picture-del-box"><span class="picture-del"><i class="fa fa-trash-o"></i>删除</span></div>' +
			'								{{/if}}' +
			'							</div>' +
			'						{{/if}}' +
			'					</div>' +
			'				{{/each}}' +
			'			</div>' +
			'  		</div>' +
			'	</div>' +
			'</script>'
	}

	var selectByUrl = function () {
		return '<script id="tpl_question_selectByUrl" type="text/html">' +
			'	<div {{if relationId}}relationId="{{relationId}}"{{/if}} data-type="question_selectByUrl" data-url="{{url}}" data-baseUrl="{{baseUrl}}" data-params="{{params}}" data-returnNode="{{returnNode}}" data-returnField="{{returnField}}" data-value="{{val}}" class="qaCard form-group form-group-sm col-sm-{{length}} col-md-{{length}} grid-label-{{labelLength}}">' +
			'		<label class="control-label {{align}}">{{label}}</label>' +
			'   	<div class="control-input">' +
			'			{{if status=="default"}}' +
			'				<select class="form-control validatebox" name="{{name}}" data-validate="{{validate}}" data-attention="{{attention}}"></select>' +
			'			{{else if status=="readonly"}}' +
			'				<select class="form-control" name="{{name}}" disabled></select>' +
			'			{{else if status=="disabled"}}' +
			'				<select class="form-control" name="{{name}}" disabled></select>' +
			'			{{/if}}' +
			'  		</div>' +
			'	</div>' +
			'</script>'
	}

	return tpl
})